<?php
/**
 * Created by PhpStorm.
 * User: Hongjw
 * Date: 2018/3/15
 * Time: 11:39
 */

namespace App\Http\Controllers\Laravel\Cache;


use App\Tools\Controller\ControllerMethodRoute;
use Illuminate\Support\Facades\Cache;

class FunController
{
    use ControllerMethodRoute;

    public $home = 'laravel/cache/fun';


    public function myPut(){
        dump(Cache::put('test9','have',20));
        dump(Cache::put('test10','have',1));
    }

    public function myGet(){
        dump(Cache::get('test9'));
        dump(Cache::get('test10'));
    }

    public function myHas(){
        Cache::has('test9');
    }
}